package com.atguigu.springcloud.service.impl;

import com.atguigu.springCloud.entites.Payment;
import com.atguigu.springcloud.dao.PaymentDao;

import com.atguigu.springcloud.service.PsymentSerivct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PsymentSerivctImpl implements PsymentSerivct {

    @Autowired
    public  PaymentDao paymentDao;

    @Override
    public int save(Payment payment) {
        return paymentDao.save(payment);
    }

    @Override
    public Payment getPaymentByID(int id) {
        return paymentDao.getPaymentByID(id);
    }
}
